//
//  NSDate+GX.m
//  tools
//
//  Created by 曹曹 on 16/8/20.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "NSDate+GX.h"

@implementation NSDate (GX)

/**
 * 获取当前时间
 */
+ (NSDate *)localDate {
    NSDate *date = [NSDate date];
    NSTimeZone *zone = [NSTimeZone systemTimeZone];
    NSInteger interval = [zone secondsFromGMTForDate:date];
    return [date dateByAddingTimeInterval:interval];
}

@end
